<?php
namespace app\common\validate;
use think\Validate;

class Forum extends Validate
{
	protected $rule =   [
		'title'		=> 'require|min:6|max:100',
		'content'	=> 'require|min:10',
		'cate_id'	=> 'require|number'
	];
	
	protected $message  =   [
		'title.require'		=> '标题必须填写',
		'title.min'			=> '标题最少需要6个字',
		'title.max'			=> '标题最多不能超过100个字',
		'content.require'	=> '内容必须填写',
		'content.min'			=> '内容最少需要10个字',
		'cate_id.require'	=> '版块必须选择',
		'cate_id.number'	=> '版块不正确'
	];
}